/*
@Author   : Uyynot
@Email    : uyynot@qq.com
@Time     : 2023/8/25 13:47
@File     : retrive.go
@Project  : web_scaff
@Desc     :
*/
package user

import (
	"web_scaff/configs"
	"web_scaff/models"
)

func Retrive(id string) (user models.User, err error) {
	err = configs.Db.Debug().First(&user, "uid=?", id).Error
	return
}
